package org.lzfto.flink.demo.controller;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Lazy
@Controller
public class ViewController {

    @GetMapping("/")
    public String index() {
        return "index";
    }
    
    @GetMapping("/login")
    public String toLogin() {
        return "login";
    }

    @GetMapping("/connector-test")
    public String connectorTest() {
        return "connector-test";
    }

    @GetMapping("/student-info")
    public String studentInfo() {
        return "student-info";
    }

    @GetMapping("/order-management")
    public String orderManagement() {
        return "order-management";
    }
    
    @GetMapping("/order-agg")
    public String orderAgg() {
        return "order-agg";
    }

    @GetMapping("/order-agg-partition")
    public String orderAggPartition() {
        return "order-agg-partition";
    }

    @GetMapping("/flink-jobs")
    public String flinkJobs() {
        return "flink-jobs";
    }

    @GetMapping("/flink-jar")
    public String flinkJar() {
        return "flink-jar";
    }

    @GetMapping("/register")
    public String register() {
        return "register";
    }
    
    @GetMapping("/mainboard")
    public String mainboard() {
        return "mainboard";
    }

    @GetMapping("/system-config")
    public String systemConfig() {
        return "system-config";
    }
}
